package com.jiyun.yonghu.controller;

import com.jiyun.vo.Result;
import com.jiyun.yonghu.service.SquadsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("squads")
public class SquadsController {
    @Autowired
    SquadsService service;
    @RequestMapping("list")
    public Result list(){
        return Result.seccuss(service.list());
    }
}
